<?php


namespace App\Http\Requests;


class UserSetPasswordRequest extends BaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'password' => ['required', 'between:6,20', 'confirmed']
        ];
    }

    public function messages()
    {
        return [
            'password.required' => '请输入新密码',
            'password.between' => '新密码字符长度:min-:max',
            'password.confirmed' => '两次密码不一致'
        ];
    }
}
